home *** CD-ROM | disk | FTP | other *** search
- getch: read a character in raw mode and write it and a newline to stdout.
- If the input is a tty, it is put in raw mode to read a single character.
- Usage: getch [ecp]
- e: don't disable echoing of characters typed to tty.
- c: get & write characters until stopped by signal or end of input.
- In this mode, getch will terminate if sent an interrupt, quit, or
- terminate signal, or if input ends. If the input is a tty, getch
- will terminate if the EOF character is read. Also, getch can be
- stopped by a broken pipe signal, which will be delivered if getch
- is writing to a pipe and the output of the pipe is closed.
- p: print a line giving the process id. This can be used to kill
- getch without it reading & writing another character.
-